/**
 * 
 */
package com.module.bp.event.base;

import com.module.bp.engine.Turn;

/**
 * Event that ends the current turn phase.
 * @author Donald
 *
 */
public final class EndPhaseEvent extends BaseEvent {
	/**
	 * {@inheritDoc}
	 */
	@Override
	public void setUserInput(final boolean input) { }
	/**
	 * {@inheritDoc}
	 */
	@Override
	public void fire() throws Exception {
		Turn.getInstance().clearEvents(Turn.getInstance().getCurrentPhase());
		Turn.getInstance().advancePhase();
		super.setFired(true);
		super.setResolved(true);
	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public void setUserInput(int input) {
		// TODO Auto-generated method stub
		
	}
}
